home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
UpTime Volume 1 #10
/
uv1n10s1.d64
/
mission jupiter
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-28
|
22KB
|
654 lines
5 poke53281,0:poke53280,11:print""
6 clr:gosub21
7 print" [201]t is the year 2056. [217]our spaceship"
8 print"crash-landed on [202]upiter when searching"
9 print"for signs of life on the planet's"
10 print"surface. [206]ow, you must find a way to"
11 print"get back to earth!":print
12 print" [201]n this text adventure game, you must";
13 print"type in two word commands to solve each"
14 print"puzzle. [211]ome examples are '[212][193][203][197] [211][213][201][212]',"
15 print"'[197][216][193][205][201][206][197] [199][204][207][194]', and '[197][193][212] [198][207][207][196]'. [201]n"
16 print"some cases, you may use one word"
17 print"commands such as '[201][206][214][197][206][212][207][210][217]' and '[204][207][207][203]'.":gosub 20001
18 poke 198,0:print"[208]lease enter your first name:"
19 lt=25:gosub10000:gosub1900:na$=ph$:if na$="" then print"[145]";:goto 19
20 forz=1to25:print:nextz:goto45
21 print"[147]"tab(12)"[205][201][211][211][201][207][206]: [202]upiter"
25 print"[159] [208]rogrammed by [196]avid [204]. [211]udarsky
35 [153]"sys (NULL)ublished by (NULL)oftdisk (NULL)ublishing, right$nc.
41 return
45 na$=chr$(asc(left$(na$,1))or 128)+right$(na$,len(na$)-1)
50 lo=1
55 on lo goto11000,11050,11100,11150,11200,11250,11300,11350,11400,11450,11500
60 onlo-11goto11550,11600,11650,11700,11750,11800,11850,11900,11950,12000,12050
65 onlo-22goto12100,12150,12200,12250,12300,12350,12400,12450,12500,12550
69 gosub 20300
70 print:le$="":ri$=""
98 print"[215]hat will you do, "na$"?"
100 lt=37:gosub10000
102 gosub 1900
105 kw=0
110 if ph$=""then print"[145][145]":goto100
111 mm=len(ph$)
112 if mm<7 then ph$=ph$+" ":goto111
113 print
115 le$=left$(ph$,3)
117 if le$="n "orle$="s "orle$="e "orle$="w "then1000
120 if le$="hel" then gosub 2000:goto70
125 if le$="qui"then 22000
130 nn=1
135 if mid$(ph$,nn,1)=" "thenri$=mid$(ph$,nn+1,3)
140 if mid$(ph$,nn,1)=" "andleft$(ri$,1)<>" "then155
142 if mid$(ph$,nn,1)=" "andleft$(ri$,1)=" "then146
145 if nn<mm then nn=nn+1:goto135
146 if le$="loo"then 55
147 if le$="inv"then20400
150 print"[194]y itself, [158]"ph$:print"cannot be acted on.":goto70
155 ifle$="kil"orle$="fig"orle$="kic"orle$="pun"orle$="att"thenkw=1:goto1100
160 ifle$="pre"andri$="but"andlo=30thenbt=1:print"[207].[203].":goto70
165 ifle$="go "orle$="mov"orle$="cli"orle$="run"orle$="wal"thenkw=1:goto1000
170 ifle$="tak"orle$="get"orle$="ste"orle$="lif"thenkw=1:goto1200
175 ifle$="dro"orle$="put"orle$="pla"orle$="thr"thenkw=1:goto1300
180 ifle$="rea"thenkw=1:goto1400
185 ifle$="exa"orle$="loo"thenkw=1:goto1500
190 ifle$="giv"orle$="don"orle$="off"thenkw=1:goto1600
195 ifle$="tal"orle$="spe"thenkw=1:goto1700
200 ifle$="eat"orle$="dri"orle$="swa"thenkw=1:goto1800
205 z=int(rnd(1)*3)
210 ifz=0thenprint"[201]t would not be wise to";
215 ifz=1thenprint"[201] don't think you should";
220 ifz=2thenprint"[201] don't know how to";
225 print"[158] "ph$""
230 goto70
999 rem ****moving routine****
1000 if le$="n "then el=1
1005 if le$="s "then el=2
1010 if le$="e "then el=3
1015 if le$="w "then el=4
1020 if ri$="nor"thenel=1
1025 if ri$="sou"thenel=2
1030 if ri$="eas"thenel=3
1035 if ri$="wes"thenel=4
1040 ifel=0 and ri$<>"cyl"then 205
1041 ifel=3andgu=0andlo=32thenprint"[212]he guard won't let you pass.":goto70
1042 ifel=1andlo=26thenprint"[158][193] forcefield blocks your passage.":goto70
1043 ifel=2andlo=25thenprint"[158][193] forcefield blocks your passage.":goto70
1044 ifel=2andlo=1andin(1)<>1andin(2)<>1andin(3)<>1andin(4)<>1andin(5)<>1then1046
1045 goto1050
1046 print"[193]s soon as you step out, the harsh"
1048 print"atmosphere [150]crushes your skeleton. [217]ou"
1049 print"are [196][197][193][196]. ":goto22000
1050 ifri$="cyl"andlo=31then23000
1051 if ma(lo,el)=0 then print"[217]ou can't go that way!"
1052 if ma(lo,el)=0 then el=0:goto70
1055 lo=ma(lo,el):el=0:goto55
1099 rem ****kill routine****
1100 z=int(rnd(1)*3)
1105 if z=0 then print"[201]t's not nice to be violent."
1110 if z=1 then print"[201] know you are too kind to do that."
1115 if z=2 then print"[207]uch! [217]ou missed and hurt yourself!"
1120 goto 70
1199 rem ****take routine****
1200 fl=0
1220 forz=1to5
1225 if in(z)<>0 then fl=fl+1
1230 nextz
1235 iffl=5thenprint"[217]ou are already carrying your maximum"
1236 iffl=5thenprint"of five objects.":goto70
1237 if ri$="cry"andlo=30thenprint"[201]t is stuck!":goto70
1240 ifri$="shi"orri$="ves"orri$="dom"orri$="tab"orri$="rob"orri$="cyl"then1245
1241 ifri$="con"orri$="pic"then1246
1242 ifri$="ali"orri$="gua"then1247
1243 ifri$="boo"andlo=28thenprint"[212]he alien won't let you take them.":goto70
1244 goto 1250
1245 print"[201]t's far too heavy!":goto70
1246 print"[201]t's attached tightly!":goto70
1247 print"[212]he alien resists and thinks you're an":print"idiot!":goto70
1250 if ma(lo,5)=0andma(lo,6)=0andma(lo,7)=0andma(lo,8)=0then1252
1251 goto 1253
1252 print"[201] see nothing to pick up.":goto70
1253 d1$="":d2$="":d3$="":d4$="":ob=0
1255 d1$=left$(ob$(ma(lo,5)),3)
1256 d2$=left$(ob$(ma(lo,6)),3)
1257 d3$=left$(ob$(ma(lo,7)),3)
1258 d4$=left$(ob$(ma(lo,8)),3)
1260 if ri$=d1$ then ob=ma(lo,5):ma(lo,5)=0
1261 if ri$=d2$ then ob=ma(lo,6):ma(lo,6)=0
1262 if ri$=d3$ then ob=ma(lo,7):ma(lo,7)=0
1263 if ri$=d4$ then ob=ma(lo,8):ma(lo,8)=0
1265 z=1
1267 if in(z)=0 then in(z)=ob:goto1270
1268 if z<5 then z=z+1:goto1267
1270 if ob>0 then print"[217]ou now have the "o1$(ob)".":goto1275
1272 print"[201] don't see it here."
1275 goto70
1299 rem ****drop routine****
1300 fl=0
1301 for z=1 to 5
1302 if in(z)<>0 then fl=1
1303 nextz
1304 if fl=0 then print"[217]ou are not carrying anything.":goto70
1310 if ri$="cry"andlo=30then21000
1311 ifma(lo,5)<>0andma(lo,6)<>0andma(lo,7)<>0andma(lo,8)<>0 then 1314
1312 goto 1316
1314 print"[201] don't recommend dropping that here.":goto70
1316 d$="":d=0
1318 for z=1 to 10
1320 if left$(ob$(z),3)=ri$ then d$=ob$(z):d=z
1322 nextz
1324 if d$=""then print"[217]ou don't have it.":goto70
1326 for z=1 to 5
1328 if in(z)=d then in(z)=0
1330 nextz
1335 if ri$="cry"andlo=30andgc>0thenprint"[207].[203].":goto70
1350 if ma(lo,5)=0 then ma(lo,5)=d:goto1356
1352 if ma(lo,6)=0 then ma(lo,6)=d:goto1356
1354 if ma(lo,7)=0 then ma(lo,7)=d:goto1356
1355 if ma(lo,8)=0 then ma(lo,8)=d
1356 ifd=1ord=3ord=4ord=7ord=8ord=9then1365
1358 if le$="dro" then print"[217]ou have dropped them."
1359 if le$="put" then print"[217]ou have put them down."
1360 if le$="pla" then print"[217]ou have placed them on the ground."
1361 if le$="thr" then print"[215]ith a mighty heave, you throw them"
1362 if le$="thr" then print"away."
1363 goto70
1365 if le$="dro" then print"[217]ou have dropped it."
1366 if le$="put" then print"[217]ou have put it down."
1367 if le$="pla" then print"[217]ou have placed it on the ground."
1368 if le$="thr" then print"[215]ith a mighty heave, you throw it away."
1369 goto70
1399 rem ****read routine****
1400 fl=0:xx=0:yy=0:zz=0:for z=1 to 5
1401 if in(z)=4 then fl=1:xx=1
1402 if in(z)=5 then fl=1:yy=1
1403 if in(z)=9 then fl=1:zz=1
1404 nextz
1406 if fl=0 then print"[217]ou are not holding anything which you"
1408 if fl=0 then print"can read.":goto70
1409 d=0:for z=1 to 10
1410 if left$(ob$(z),3)=ri$ then d$=ob$(z):d=z
1412 nextz
1414 if xx=1 and d=4 then1420
1415 if yy=1 and d=5 then1430
1416 if zz=1 and d=9 then1460
1417 print"[217]ou don't have it.":goto70
1420 print"[212]he identification card reads:":print
1422 print"[217][203][211][210][193][196][213][211] obmoc 64738":goto70
1430 print"[197]ach coin says:":print
1432 print"*100* tebla":goto70
1460 print"[212]he four page program is filled with a"
1462 print"bunch of alien mumbo-jumbo. [217]ou"
1464 print"obviously don't understand the strange"
1466 print"language.":goto70
1499 rem ****examine routine****
1500 forz=1 to 10
1502 if left$(ob$(z),3)=ri$ then 1530
1504 nextz
1506 print"[217]ou see nothing special.":goto70
1530 d$=ob$(z):d=z
1532 fl=0:forz=1to5
1534 if in(z)=d then fl=1
1536 nextz
1537 if fl=1 then 1540
1538 ifd=1ord=3ord=4ord=7ord=8ord=9thenprint"[217]ou don't have it.":goto70
1539 ifd=2ord=5ord=6ord=10thenprint"[217]ou don't have them.":goto70
1540 if d=1 then print"[217]ou notice that it fits quite tightl